package com.gimi.cloud.jimi.manage.consumer.service.app;

import com.gimi.cloud.jimi.common.exception.MsgException;
import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *  栏目
 * @auther loongs
 * @date 2017/12/27  14:40
 */
public interface ColumnService {
    /**
     * 获得栏目列表展示（分页）
     * @return 菜单列表
     */
    Response getColumnList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response)throws MsgException;

    /**
     * 获得栏目列表与商品列表展示（分页）
     * @return 菜单列表
     */
    Response getPreColumnProdList(String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;
    /**
     * 添加栏目
     * @return 菜单列表
     */
    Response addColumn(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 编辑栏目
     * @return 菜单列表
     */
    Response editColumn(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 转跳到编辑栏目页面（查询指定栏目）
     * @return 菜单列表
     */
    Response gotoEditColumn(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 启用/禁用栏目
     * @return 菜单列表
     */
    Response deleteColumn(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;
}
